package com.example.timesheet.uitl;
import java.util.ArrayList;
import java.util.List;

public class TaskTypeFactory {

    public static List<TaskType> createTaskType() {

        List<TaskType> taskTypes = new ArrayList<TaskType>();
        //Demand
        TaskType taskType = new TaskType();
        taskType.setId(null);
        taskType.setTaskName(TaskConstants.DEMAND);
        taskTypes.add(taskType);

        //Defect
        taskType = new TaskType();
        taskType.setId(null);
        taskType.setTaskName(TaskConstants.DEFECT);
        taskTypes.add(taskType);

        taskType = new TaskType();
        taskType.setId(TaskConstants.CODE_ANALYSIS_CODE);
        taskType.setTaskName(TaskConstants.CODE_ANALYSIS);
        taskTypes.add(taskType);

        taskType = new TaskType();
        taskType.setId(TaskConstants.SCRUM_CODE);
        taskType.setTaskName(TaskConstants.SCRUM);
        taskTypes.add(taskType);

        /**
         * documentation
         */
        taskType = new TaskType();
        taskType.setId(TaskConstants.DOCUMENTATION_CODE);
        taskType.setTaskName(TaskConstants.DOCUMENTATION);
        taskTypes.add(taskType);

        /**
         * environment setup
         */
        taskType = new TaskType();
        taskType.setId(TaskConstants.MACHINE_SETUP_CODE);
        taskType.setTaskName(TaskConstants.MACHINE_SETUP);
        taskTypes.add(taskType);
        
        
        taskType = new TaskType();
        taskType.setId(TaskConstants.MACHINE_SETUP_CODE);
        taskType.setTaskName(TaskConstants.MACHINE_SETUP);
        taskTypes.add(taskType);
        

        /**
         * All Hands Meeting code
         */

        taskType = new TaskType();
        taskType.setId(TaskConstants.ALL_HANDS_MEETING_CODE);
        taskType.setTaskName(TaskConstants.ALL_HANDS_MEETING);
        taskTypes.add(taskType);

        /**
         * Miscellenous
         */
        taskType = new TaskType();
        taskType.setId(TaskConstants.MISCELLENEOUS_PROJECT_ACTIVITY_CODE);
        taskType.setTaskName(TaskConstants.MISCELLENEOUS_PROJECT_ACTIVITY);
        taskTypes.add(taskType);

        /**
         * full day
         */
        taskType = new TaskType();
        taskType.setId(TaskConstants.FULLDAY_LEAVE_CODE);
        taskType.setTaskName(TaskConstants.FULLDAY_LEAVE);
        taskTypes.add(taskType);

        /**
         * half day
         */
        taskType = new TaskType();
        taskType.setId(TaskConstants.HALFDAY_LEAVE_CODE);
        taskType.setTaskName(TaskConstants.HALFDAY_LEAVE);
        taskTypes.add(taskType);

        taskType = new TaskType();
        taskType.setId(TaskConstants.SICK_LEAVE_CODE);
        taskType.setTaskName(TaskConstants.SICK_LEAVE);
        taskTypes.add(taskType);

        return taskTypes;

    }

}
